import request from '../utils/axios'
export function confessionWall(data) {
  //表白墙
  return request({
    method: 'post',
    url: '/confession/createNewConfession',
    data: data
  })
}
export function getConfessionList(data) {
  //获取表白列表
  return request({
    method: 'get',
    url: '/confession/getConfessionList',
    params: data
  })
}

export function sendLoveComment(data) {
  //表白墙详情发表评论
  return request({
    method: 'post',
    url: '/confession/sendConfessionComment',
    data: data
  })
}
export function getConfessionComments(data) {
  //获取表白详情的评论列表
  return request({
    method: 'get',
    url: '/confession/getComments',
    params: data
  })
}
export function getConfessionDetail(data) {
  //获取表白详情
  return request({
    method: 'get',
    url: '/confession/getConfessionDetail',
    params: data
  })
}
